package com.hlkj.pay.dto.provider;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.math.BigDecimal;
/**
 * @author HlpayTeam
 * @date 2024/09/23 16:21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StepFeeConfig {
	
	/**
	 * index : 0
	 * startAmt : 0
	 * endAmt : 1000
	 * srvRateBase : 10
	 * mrtDefRate : 0
	 */
	
	@Schema(description = "区间起始金额")
	@Min(value = 0,message = "区间起始金额 必须大于0")
	private BigDecimal startAmt;
	@Schema(description = "区间结束金额")
	private BigDecimal endAmt;
	@Schema(description = "服务商费率底价")
	@Max(value = 100,message = "费率 必须小于100")
	@Min(value = 0,message = "费率 必须必须大于0")
	private BigDecimal rateBase;
	
}
